<?php

/**
 * @version		1.1
 * @package		Taxi Booking
 * @copyright	Copyright (C) 2011 KANEV.CO.UK All rights reserved.
 * @license		GNU/GPL, see license.txt
 * Taxi Booking is open source software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// no direct access
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

/**
 * HTML View class for the View
 */
class TaxiBookingViewThanks extends JView
{

    /**
     * Creates the Forms for the View
     *
     * @since 1.0
     */
    function display($tpl = null)
    {

       $app = JFactory::getApplication();
        //initialize variables
        $document = & JFactory::getDocument();
        $menus = $app->getMenu();
        $lang = & JFactory::getLanguage();
        $menu = $menus->getActive();
        $uri = & JFactory::getURI();
        $session = & JFactory::getSession();

        // Get the page/component configuration
        $params = $app->getParams();

        //add css file
        $this->document->addStyleSheet($this->baseurl . '/components/com_taxibooking/assets/css/booking.css');

        // right from the menu item itself
        if (is_object($menu))
        {
            $menu_params = new JRegistry;
            $menu_params->loadString($menu->params);

            if (!$menu_params->get('page_title'))
            {

                $params->set('page_title', JText::_('Taxi Booking'));
            }
        }
        else
        {
            $params->set('page_title', JText::_('Taxi Booking'));
        }

        /*
         * Handle the metadata for the categories list
         */
        $this->document->setTitle($title);
        $this->document->setMetadata('keywords', $params->get('page_title'));

        if ($app->getCfg('MetaTitle') == '1')
        {
            $this->document->setMetadata('title', $params->get('page_title'));
        }

        $this->assignRef('params', $params);

        parent::display($tpl);
    }

}

?>